package com.shanzmoo.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.store.entity.StoreInfoEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * 仓库库位 更新对象
 *
 * @author xueqz 2021-03-03
 */
@Data
@ApiModel("仓库库位-更新对象")
public class StoreInfoUpdateDTO{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "仓库ID")
    private Integer id;
    /**
     * 仓库名称
     */
    private String name;
    /**
     * 更新人
     */
    private Integer updateUser;

    public StoreInfoEntity converToEntity() {
        StoreInfoEntity target = new StoreInfoEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
